import request from '@/utils/request'


// 查询列表
export function userList (query) {
  return request({
    url: '/appUser/list',
    method: 'get',
    params: query
  })
}

// 修改用户登录密码
export function resetPassword ({ id, password }) {
  return request({
    url: '/appUser/resetPassword',
    method: 'put',
    data: {
      "id": id,
      "password": password
    }
  })
}

// 停用用户
export function stop (id) {
  return request({
    url: '/appUser/stop/' + id,
    method: 'put'
  })
}

// 启用用户
export function enable (id) {
  return request({
    url: '/appUser/enable/' + id,
    method: 'put'
  })
}